import service from "@/utils/request";


export const getExamListService = params => 
    service({
        url: '/exam/semiLogin/redis/list',
        method: 'get',
        params
    })


export const enterExamService = examId =>
    service({
        url: '/user/exam/enter',
        method: 'post',
        data: { examId }
    })


export const getMyExamListService = params => 
    service({
        url: '/user/exam/list',
        method: 'get',
        params
    })

export const getExamFirstQuestionService = examId => 
    service({
        url: '/exam/getFirstQuestion',
        method: 'get',
        params: { examId }
    })

export const examPreQuestionService = (examId, questionId) => 
    service({
        url: '/exam/preQuestion',
        method: 'get',
        params: { examId, questionId }
    })


export const examNextQuestionService = (examId, questionId) => 
    service({
        url: '/exam/nextQuestion',
        method: 'get',
        params: { examId, questionId }
    })